package com.xingkeduo.dto;

import com.xingkeduo.utils.TableAnnotations;
import lombok.Data;

import java.util.Map;

@Data
public class ScreenCommentDto {

    @TableAnnotations("用户ID")
    private String userId;

    @TableAnnotations("理发师ID")
    private String adminId;

    @TableAnnotations("手艺人名称")
    private String adminName;

    @TableAnnotations("用户昵称")
    private String userNickName;

    @TableAnnotations("评价（已过滤）")
    private String comment;

    @TableAnnotations("是否匿名")
    private Boolean anonymous;
    //用户头像
    private String userImg;


    public void conve(String adminName, Map<String,String> map){
        this.adminName=adminName;
        if(!map.isEmpty()){
            this.userNickName=map.get("f_name");
            this.userImg=map.get("f_avatar");

        }

    }

}
